package org.msn.enumerate;

import lombok.Data;

public enum CodeEnum {
    successJoinRoom(100),
    sendMsg(200),
    getAllRoom(201),
    createRoom(202),
    joinRoom(203),
    closeConnection(204),
    leaveRoom(205),
    failJoinRoom(400),
    ;

    private int code;

    CodeEnum(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
